#!/usr/bin/env python
# -*- coding: utf-8 -*-

from controller import app_user
from controller import web_user
from controller import user
from controller.public import public_api
from controller.nurse import nurse_filing
from controller.nurse import archives_mange
from controller.nurse import phy_examination

from controller.doctor import cj_archives
from controller.doctor import laboratory_test
#from controller.doctor import askinquiry_partum
from controller.doctor import diagnostic_record
from controller.doctor import prenatal_screening
from controller.doctor import ask_result
from controller.template_manage import template
from controller.doctor import highrisk_score
from controller.high_risk_pro import highriskpro
#from controller.high_risk_pro import highriskass
#from controller.high_risk_pro import highrisdetail
from controller.followup_record import followup_mange
from controller.doctor_hospitalization import delivery_record
from controller.doctor_hospitalization import newborn_record
from controller.doctor_hospitalization import operation_record
from controller.doctor_hospitalization import doctor_hospitalization_api
from controller.report import amy_case
from controller.report import ogtt_case
from controller.report import nt_case
from controller.report import tangshai_case
# from controller.report import perinatal_quarterly
from controller.report import hos_del_mon_report
from controller.report import delivery_details
from controller.image_url import ImageAPI
from controller import first_page
from controller import query_report

"""绑定资源和路由"""
def add_routers(api):
    # 规则：/{domain}/{service or module}/api/{version}/{resource}/{action}/{resource_id}
    api.add_resource(app_user.AppUserLoginAPI, '/api/v1.0/app/user/login')  # APP用户登录
    api.add_resource(app_user.AppUserCheckTokenAPI, '/api/v1.0/app/user/check')  # APP用户Token校验
    api.add_resource(web_user.WebLoginAPI, '/ck/api/v1.0/web/user/login')  # web用户登录
    api.add_resource(web_user.WebCheckTokenAPI, '/api/v1.0/web/user/check')  # web用户Token校验

    # 基础接口
    api.add_resource(user.UserQueryAPI, '/api/v1.0/user/query')  # 根据id获取用户
    api.add_resource(user.UserCreateAPI, '/api/v1.0/user/create')  # 新增用户
    api.add_resource(user.UserInfoByToken, '/ck/api/v1.0/ckCommon/user/getInfo') # 根据token获取用户信息

    # 图片base64转url
    api.add_resource(ImageAPI, '/api/v1.0/image/<string:model_name>/<int:record_id>/<string:field_name>')

    # 公共接口
    api.add_resource(public_api.ArchivesBindAPI, '/ck/api/v1.0/ckCommon/archives/bind')  # 绑定孕妇
    api.add_resource(public_api.CommonQueryDoctorAPI, '/ck/api/v1.0/ckCommon/query/doctor')  # 模糊查询医生
    api.add_resource(public_api.CommonQueryHospitalAPI, '/ck/api/v1.0/ckCommon/query/hospital')  # 模糊查询医院
    api.add_resource(public_api.DictionariesGetAllAPI, '/ck/api/v1.0/ckCommon/dictionaries/getAll')  # 获取字典-全部
    api.add_resource(public_api.DictionariesGetByTypeAPI, '/ck/api/v1.0/ckCommon/dictionaries/getBytype')  # 获取字典-通过类型获取单个字典
    api.add_resource(public_api.RegionTreeGetAPI, '/ck/api/v1.0/ckCommon/RegionTree/get')  # 获取省市区数据
    api.add_resource(public_api.ArchivesGetBindAPI, '/ck/api/v1.0/ckCommon/archives/getBind')  # 获取绑定孕妇
    api.add_resource(public_api.ArchivesDeBindAPI, '/ck/api/v1.0/ckCommon/archives/deBind')  # 解绑孕妇
    api.add_resource(public_api.RegistrationListAPI, '/ck/api/v1.0/ckCommon/registration/list')  # 获取挂号列表
    api.add_resource(public_api.CheckingDetailAPI, '/ck/api/v1.0/ckCommon/checking/detail')  # 查询在途检查情况
    api.add_resource(public_api.CheckingAbandonAPI, '/ck/api/v1.0/ckCommon/checking/abandon')  # 放弃在途检查

    # 首页
    api.add_resource(first_page.UpperDataAPI,
                     '/ck/api/v1.0/index/archives/selectArchivesStatistics')  # 获取首页上部统计数据接口
    api.add_resource(first_page.ArchivesAreaAPI,
                     '/ck/api/v1.0/index/archives/selectArchivesAreaStatistics')  # 档案区域分布统计
    api.add_resource(first_page.FollowUpTaskAPI,
                     '/ck/api/v1.0/index/archives/selectFollowUpList')  # 查询随访任务列表
    api.add_resource(first_page.DeliverAPI,
                     '/ck/api/v1.0/index/archives/selectLabourStatistics')  # 查询分娩统计
    api.add_resource(first_page.HighRiskAPI,
                     '/ck/api/v1.0/index/archives/selectHighRiskStatistics')  # 高危分布图表
    api.add_resource(first_page.ToDoAPI,
                     '/ck/api/v1.0/index/archives/selectFollowUpStatistics')  # 随访与访视待办统计数据
    api.add_resource(first_page.NoticeAPI,
                     '/ck/api/v1.0/index/system/selectNoticeList')  # 获取通知公告列表
    # 护士工作站-孕妇建档
    api.add_resource(nurse_filing.ArchivesAddAPI, '/ck/api/v1.0/archivesManage/archives/add')  # 新增产妇建档基本信息
    api.add_resource(nurse_filing.ArchivesUpdateAPI, '/ck/api/v1.0/archivesManage/archives/update')  # 修改产妇建档基本信息
    api.add_resource(nurse_filing.ArchivesGetWyjdInfoAPI, '/api/v1.0/archivesManage/archives/getWyjdInfo')  # 根据身份证号码查最新外院建档数据
    api.add_resource(nurse_filing.ArchivesGetArchivesInfoAPI, '/ck/api/v1.0/archivesManage/archives/getArchivesInfo')  # 查询产妇建档基本信息
    #
    # 护士工作站-档案管理
    api.add_resource(archives_mange.ArchivesSelectPeopleCountAPI, '/ck/api/v1.0/archivesManage/archives/selectPeopleCount')  # 查询建档统计信息
    api.add_resource(archives_mange.ArchivesListAPI, '/ck/api/v1.0/archivesManage/archives/list')  # 查询产妇建档基本信息列表
    api.add_resource(archives_mange.ArchivesSelectByArchivesIdAPI, '/ck/api/v1.0/archivesManage/archives/selectInfoAggregationByArchivesId')  # 档案详情根据档案号查询信息
    api.add_resource(archives_mange.ArchivesGetOutpatientStepAPI, '/ck/api/v1.0/archivesManage/archives/getArchivesOutpatientStep')  # 查询档案信息及进度步骤-门诊及住院 绑定信息

    api.add_resource(archives_mange.ArchivesGetCheckListAPI, '/ck/api/v1.0/archivesManage/archives/getCheckLsit')  # 档案详情获取检查列表
    api.add_resource(archives_mange.ArchivesGetFenMianCenterDataAPI, '/ck/api/v1.0/archivesManage/archives/getFenMianCenterData')  # 获取云平台分娩记录格式数据
    api.add_resource(archives_mange.ArchivesGetUteHeiCurAPI, '/ck/api/v1.0/archivesManage/archives/getUterineHeightCurve')  # 查询宫高体重曲线图
    api.add_resource(archives_mange.ArchivesGetFollowUpRecordListAPI, '/ck/api/v1.0/archivesManage/archives/getFollowUpRecordList')  # 查询档案详情随访任务列表
    api.add_resource(archives_mange.ArchivesGetOutPatientAPI, '/api/v1.0/archivesManage/archives/GetOutpatientPatient')  # 获取HIS中患者基本信息-根据身份证查询
    #
    # 护士工作站-体格检查
    api.add_resource(phy_examination.PhyExaNewAPI, '/ck/api/v1.0/phyExamination/examination/new')  # 新增体格检查
    api.add_resource(phy_examination.PhyExaUpdateAPI, '/ck/api/v1.0/phyExamination/examination/update')  # 修改体格检查
    api.add_resource(phy_examination.PhyExaQueryByArchivesIdAPI, '/ck/api/v1.0/phyExamination/examination/queryByArchivesId')  # 查询体格检查 回显使用
    api.add_resource(phy_examination.PhyExaHistoryAPI, '/ck/api/v1.0/phyExamination/examination/queryPhysicalExaminationHistory')  # 根据logId和档案Id查询体格检查历史记录
#
    ## 医生工作站-初检档案
    api.add_resource(cj_archives.CjArchivesNewAPI, '/ck/api/v1.0/cjArchives/cjArchives/new')  # 新增初检档案
    api.add_resource(cj_archives.CjArchivesUpdateAPI, '/ck/api/v1.0/cjArchives/cjArchives/update')  # 更新初检档案
    api.add_resource(cj_archives.CjArchivesQueryByArchivesIdAPI, '/ck/api/v1.0/cjArchives/cjArchives/queryCjByArchivesId')  # 查询初检档案记录回显及历史
#
    # 医生工作站-实验室及辅助检查
    api.add_resource(laboratory_test.LaboratoryTestNewAPI, '/ck/api/v1.0/laboratoryTest/laboratoryTest/new')  # 新增实验室及辅助检查
    api.add_resource(laboratory_test.LaboratoryTestUpdateAPI, '/ck/api/v1.0/laboratoryTest/laboratoryTest/update')  # 修改实验室及辅助检查
    api.add_resource(laboratory_test.LaboratoryTestExtResAPI, '/ck/api/v1.0/laboratoryTest/results/extract')  # 提取实验结果
    api.add_resource(laboratory_test.LaboratoryTestQueryHisAPI, '/ck/api/v1.0/laboratoryTest/LaboratoryHistory/query')  # 查询实验室及辅助检查回显+历史
    api.add_resource(laboratory_test.LaboratoryTestRecordListAPI, '/api/v1.0/laboratoryTest/LaboratoryRecord/List')  # 获取实验室检验报告单列表
#
    ## 医生工作站-常规、产后42天问询
    #api.add_resource(askinquiry_partum.AskInquiryPartumAddAPI, '/api/v1.0/askInquiry/partum/add')  # 常规产后42天问询
    #api.add_resource(askinquiry_partum.AskInquiryPartumUpdateAPI, '/api/v1.0/askInquiry/partum/update')  # 更新常规产后42天问询
    #api.add_resource(askinquiry_partum.AskInquiryPartumQueryHisAPI, '/api/v1.0/askInquiry/askHistory/query')  # 常规及产后42天问询回显+历史
#
    ## 医生工作站-诊断处理
    api.add_resource(diagnostic_record.DiagnosticRecordAddAPI, '/ck/api/v1.0/diagnostic/record/add')  # 新增诊断处理
    api.add_resource(diagnostic_record.DiagnosticRecordUpdateAPI, '/ck/api/v1.0/diagnostic/record/update')  # 修改诊断处理
    api.add_resource(diagnostic_record.DiagnosticRecordQueryInsHisAPI, '/ck/api/v1.0/diagnostic/record/queryInspectionDiagnosticHistory')  # 档案ID查询诊断处理 或 根据logid历史记录
    api.add_resource(diagnostic_record.DiagnosticRecordQueryHisAPI, '/ck/api/v1.0/diagnostic/record/queryHistory')  # 诊断处理左侧时间线
    api.add_resource(diagnostic_record.DiaHighRiskFacTypeListAPI, '/ck/api/v1.0/diagnostic/highriskFactorsType/list')  # 高危风险筛查页面左侧列表分类查询
    api.add_resource(diagnostic_record.DiaHighRiskFacListAPI, '/ck/api/v1.0/diagnostic/highriskFactors/list')  # 高危风险筛查页面右侧高危因素列表查询
    api.add_resource(diagnostic_record.GetCheckProject, '/ck/api/v1.0/diagnostic/checkproject/get') # 获取检查项目列表

    # 医生工作站-产前筛查与诊断-唐筛
    api.add_resource(prenatal_screening.TangShaiAddAPI, '/ck/api/v1.0/prenatalScreening/tangShai/add')  # 新增唐筛检查记录
    api.add_resource(prenatal_screening.TangShaiUpdateAPI, '/ck/api/v1.0/prenatalScreening/tangShai/update')  # 修改唐筛检查记录
    api.add_resource(prenatal_screening.TangShaiQueryListAPI, '/ck/api/v1.0/prenatalScreening/tangShai/list')  # 查询产前筛查与诊断-唐筛个案登记列表
    api.add_resource(prenatal_screening.TangShaiGetRecordAPI, '/ck/api/v1.0/prenatalScreening/tangShai/getRecord')  # 唐筛提取实验结果
    api.add_resource(prenatal_screening.TangShaiMakeReportAPI, '/api/v1.0/prenatalScreening/tangShai/makeReport')  # 生成唐筛填写表单

    # 医生工作站-产前筛查与诊断-产前筛查
    api.add_resource(prenatal_screening.PrenatalScreeningAddAPI, '/ck/api/v1.0/prenatalScreening/prenatalScreening/add')  # 新增产前筛查记录
    api.add_resource(prenatal_screening.PrenatalScreeningUpdateAPI, '/ck/api/v1.0/prenatalScreening/prenatalScreening/update')  # 修改产前筛查记录
    api.add_resource(prenatal_screening.PrenatalScreeningListAPI, '/ck/api/v1.0/prenatalScreening/prenatalScreening/list')  # 回显产前筛查记录

    # 医生工作站-产前筛查与诊断-艾梅乙
    api.add_resource(prenatal_screening.AmyTestAddAPI, '/ck/api/v1.0/prenatalScreening/amyTest/add')  # 新增产前筛查与诊断-艾梅乙检测
    api.add_resource(prenatal_screening.AmyTestUpdateAPI, '/ck/api/v1.0/prenatalScreening/amyTest/update')  # 修改产前筛查与诊断-艾梅乙检测
    api.add_resource(prenatal_screening.AmyTestListAPI, '/ck/api/v1.0/prenatalScreening/amyTest/query')  # 回显艾梅乙记录

    # 医生工作站-产前筛查与诊断-贫血筛查
    api.add_resource(prenatal_screening.AnemiaTestAddAPI, '/ck/api/v1.0/prenatalScreening/anemiaTest/add')  # 新增产前筛查与诊断-贫血筛查
    api.add_resource(prenatal_screening.AnemiaTestUpdateAPI, '/ck/api/v1.0/prenatalScreening/anemiaTest/update')  # 修改产前筛查与诊断-贫血筛查
    api.add_resource(prenatal_screening.AnemiaTestListAPI, '/ck/api/v1.0/prenatalScreening/anemiaTest/list')  # 回显产前筛查与诊断-贫血筛查
    api.add_resource(prenatal_screening.AnemiaTestExtResAPI, '/ck/api/v1.0/prenatalScreening/anemiaTest/extractResults')  # 提取贫血筛查实验结果

    # 医生工作站-高危评分
    api.add_resource(highrisk_score.HighRiskScoreInsert, '/ck/api/v1.0/highrisjScore/insert') # 新增高危评分
    api.add_resource(highrisk_score.HighriskScoreQueryAPI, '/ck/api/v1.0/highriskScore/query')  # 回显高危评分
    api.add_resource(highrisk_score.HighriskScoreUpdateAPI, '/ck/api/v1.0/highriskScore/update')  # 修改高危评分
    # api.add_resource(highrisk_score.HighriskScoreTypeListAPI, '/api/v1.0/highriskScoreType/List')  # 查询左侧分类树
    api.add_resource(highrisk_score.HighriskScoreFactorsListAPI, '/ck/api/v1.0/highriskScoreFactors/list')  # 修改高危风险评估页面右侧列表展示和查询

    ## 医生工作站-问询
    api.add_resource(ask_result.AskResultQueryListAPI, '/ck/api/v1.0/ask/result/query')  # 查询问询记录回显及历史
    api.add_resource(ask_result.AskResultAddAPI, '/ck/api/v1.0/ask/result/insert')  # 新增问询
    api.add_resource(ask_result.AskResultUpdateAPI, '/ck/api/v1.0/ask/result/update')  # 修改问询或历史记录
#
    # 模板维护
    api.add_resource(template.TemplateAddAPI, '/ck/api/v1.0/templateManagement/template/add')  # 新增模板管理
    api.add_resource(template.TemplateUpdateAPI, '/ck/api/v1.0/templateManagement/template/update')  # 修改模板管理
    api.add_resource(template.TemplateQueryListAPI, '/ck/api/v1.0/templateManagement/template/listAll')  # 查询模板详情列表
    api.add_resource(template.TemplateDeleteAPI, '/ck/api/v1.0/templateManagement/template/delete') # 删除模板

    # 高危专案管理-高危专案管理
    api.add_resource(highriskpro.HighRiskProStaGetAPI, '/ck/api/v1.0/highriskProjectManagement/statistical/get')  # 获取高危专案上部统计数据
    api.add_resource(highriskpro.HighRiskProListAPI, '/ck/api/v1.0/highriskProjectManagement/highriskProject/list')  # 高危专案管理首页下部列表
    api.add_resource(highriskpro.HighRiskProExportAPI, '/api/v1.0/highriskProjectManagement/highriskProject/export')  # 导出高危专案管理首页下部列表

    ## 高危专案管理-高危评估
    #api.add_resource(highriskass.HighRiskAssEvaListAPI, '/api/v1.0/highriskAssessment/Evaluation/list')  # 高危评估列表查询
    #api.add_resource(highriskass.HighRiskAssEvaQueryByIdAPI, '/api/v1.0/highriskAssessment/Evaluation/querybyid')  # 根据高危评估单ID查询展开详情
    #api.add_resource(highriskass.HighRiskAssEvaExamineAPI, '/api/v1.0/highriskAssessment/Evaluation/examine')  # 根据高危评估单ID审核
#
    ## 高危专案管理-产前筛查高危风险专案
    #api.add_resource(highrisdetail.CallBackListAPI, '/api/v1.0/prenatalScreeningHighRsikManage/project/result/callbacklist')  # 产前筛查高危风险详情-召回记录详情list
    #api.add_resource(highrisdetail.GetCardListAPI, '/api/v1.0/prenatalScreeningHighRsikManage/project/result/getcardlist')  # 产前筛查高危风险详情-取单记录详情list
    #api.add_resource(highrisdetail.Week28ListAPI, '/api/v1.0/prenatalScreeningHighRsikManage/project/result/week28list')  # 产前筛查高危风险详情-孕28周回访记录详情list
    #api.add_resource(highrisdetail.RcResultListAPI, '/api/v1.0/prenatalScreeningHighRsikManage/project/result/resultlist')  # 产前筛查高危风险详情-妊娠结局回访记录详情list
    ##api.add_resource(highrisdetail.CqscHighRiskProStaGetAPI, '/api/v1.0/prenatalScreeningHighRsikManage/project/count')  # 产前筛查高危风险专案 上部统计数据
    ##api.add_resource(highrisdetail.PhyExaNewAPI, '/api/v1.0/prenatalScreeningHighRsikManage/project/list')  # 产前筛查高危风险专案下部列表
    #api.add_resource(highrisdetail.OrderRecordAddAPI, '/api/v1.0/prenatalScreeningHighRsikManage/orderRecord/add')  # 取单
    #api.add_resource(highrisdetail.OrderRecordQueryAPI, '/api/v1.0/prenatalScreeningHighRsikManage/orderRecord/query')  # 回显取单详情
#
    # 随访管理
    api.add_resource(followup_mange.HighRiskFollowupTasksListAPI, '/ck/api/v1.0/followupManagement/highriskFollowupTasks/list')  # 高危随访列表
    api.add_resource(followup_mange.HighRiskFollowupRecAddAPI, '/ck/api/v1.0/followupManagement/highriskFollowupRecord/add')  # 生成高危随访-执行高危随访登记
    api.add_resource(followup_mange.HighRiskFollowupRecUpdateAPI, '/ck/api/v1.0/followupManagement/highriskFollowupRecord/update')  # 修改高危随访登记记录
    # api.add_resource(followup_mange.RecallFollowupRecAddAPI, '/api/v1.0/followupManagement/recallFollowupRecord/add')  # 生成产前筛查高危风险召回随访
    api.add_resource(followup_mange.RecallFollowupRecUpdateAPI, '/ck/api/v1.0/followupManagement/recallFollowupRecord/update')  # 修改产前筛查高危风险召回随访
    # api.add_resource(followup_mange.PreOutFollowupRecAddAPI, '/api/v1.0/followupManagement/pregnancyOutcomeFollowupRecord/add')  # 生成产前筛查高危风险妊娠结局随访
    api.add_resource(followup_mange.PreOutFollowupRecUpdateAPI, '/ck/api/v1.0/followupManagement/pregnancyOutcomeFollowupRecord/update')  # 修改产前筛查高危风险妊娠结局随访
    # api.add_resource(followup_mange.PostpartumFollowupRecAddAPI, '/api/v1.0/followupManagement/postpartumFollowupRecord/add')  # 生成产前筛查高危风险28天随访
    api.add_resource(followup_mange.PostpartumFollowupRecUpdateAPI, '/ck/api/v1.0/followupManagement/postpartumFollowupRecord/update')  # 修改产前筛查高危风险28天随访
    api.add_resource(followup_mange.FollowUpRecordQueryAPI, '/ck/api/v1.0/followupManagement/followupRecord/query')  # 根据任务类型回显随访记录
#
#
    ## 住院医生工作站-分娩记录单
    api.add_resource(delivery_record.DeliveryRecAddAPI, '/ck/api/v1.0/hospitalizationManagement/deliveryRecord/add')  # 新增分娩记录单
    api.add_resource(delivery_record.DeliveryRecUpdateAPI, '/ck/api/v1.0/hospitalizationManagement/deliveryRecord/update')  # 修改分娩记录单
    api.add_resource(delivery_record.DeliveryRecListAPI, '/ck/api/v1.0/hospitalizationManagement/deliveryRecord/query')  # 回显分娩记录单
    #
    ## 住院医生工作站-新生儿记录单
    api.add_resource(newborn_record.NewbornRecordAddAPI, '/ck/api/v1.0/hospitalizationManagement/newbornRecord/add')  # 新增新生儿记录单
    api.add_resource(newborn_record.NewbornRecordUpdateAPI, '/ck/api/v1.0/hospitalizationManagement/newbornRecord/update')  # 修改新生儿记录单
    api.add_resource(newborn_record.NewbornRecordListAPI, '/ck/api/v1.0/hospitalizationManagement/newbornRecord/query')  # 回显新生儿记录单
    #
    ## 住院医生工作站-剖宫手术记录单
    api.add_resource(operation_record.OperationRecNewAPI, '/ck/api/v1.0/hospitalizationManagement/operationRecord/add')  # 新增剖宫产手术记录单
    api.add_resource(operation_record.OperationRecUpdateAPI, '/ck/api/v1.0/hospitalizationManagement/operationRecord/update')  # 修改剖宫产手术记录单
    api.add_resource(operation_record.OperationRecListAPI, '/ck/api/v1.0/hospitalizationManagement/operationRecord/query')  # 回显剖宫产手术记录单
#
    # 住院医生工作站
    api.add_resource(doctor_hospitalization_api.HospitalizedPatientRecListAPI, '/api/v1.0/hospitalizationManagement/operationRecord/query')  # 回显剖宫产手术记录单
    api.add_resource(doctor_hospitalization_api.MedicalRecListAPI, '/ck/api/v1.0/hospitalizationManagement/medicalRecord/list')  # 右侧获取病历管理列表

    ## 报表查询
    api.add_resource(delivery_details.DeliveryDetailsListAPI, '/api/v1.0/reportManagement/deliveryDetails/list')  # 产科分娩明细表
    api.add_resource(delivery_details.DeliveryDetailsExportAPI, '/api/v1.0/reportManagement/deliveryDetails/export')  # 导出产科分娩明细表
    api.add_resource(hos_del_mon_report.HospitalDelMonRepListAPI, '/api/v1.0/reportManagement/hospitalDeliveryMonthlyReport/list')  # 住院分娩月报
    api.add_resource(hos_del_mon_report.HospitalDelMonRepExportAPI, '/api/v1.0/reportManagement/hospitalDeliveryMonthlyReport/export')  # 导出住院分娩月报
    # api.add_resource(perinatal_quarterly.PerinatalQuaRepListAPI, '/api/v1.0/reportManagement/perinatalQuarterlyReport/list')  # 围产儿数季报表
    # api.add_resource(perinatal_quarterly.PerinatalQuaRepExportAPI, '/api/v1.0/reportManagement/perinatalQuarterlyReport/export')  # 导出围产儿数季报表
    api.add_resource(tangshai_case.TangShaiCaseListAPI, '/api/v1.0/reportManagement/tangShaiCase/list')  # 唐筛个案登记本
    api.add_resource(tangshai_case.TangShaiCaseExportAPI, '/api/v1.0/reportManagement/tangShaiCase/export')  # 导出唐筛个案登记本
    api.add_resource(nt_case.NtCaseListAPI, '/api/v1.0/reportManagement/ntCase/list')  # NT个案登记本
    api.add_resource(nt_case.NtCaseExportAPI, '/api/v1.0/reportManagement/ntCase/export')  # 导出NT个案登记本
    api.add_resource(ogtt_case.OgttCaseListAPI, '/api/v1.0/reportManagement/ogttCase/list')  # 糖耐OGTT个案登记本
    api.add_resource(ogtt_case.OgttCaseExportAPI, '/api/v1.0/reportManagement/ogttCase/export')  # 导出糖耐OGTT个案登记本
    api.add_resource(amy_case.AmyCaseListAPI, '/api/v1.0/reportManagement/amyCase/list')  # 艾梅乙登记本
    api.add_resource(amy_case.AmyCaseExportAPI, '/api/v1.0/reportManagement/amyCase/export')  # 导出艾梅乙登记本